class_name DamageArea
extends Area2D

signal reset_player

@export var reset_to_checkpoint: bool = true
@export var damage: float = 1.0
@export var camera_shake_strength: float = 4.0


func _ready() -> void:
	add_to_group("damage_area")


func _on_body_entered(_body: Node2D) -> void:
	emit_signal("reset_player")
